import axios from 'axios'

axios.defaults.timeout = 50000

axios.interceptors.request.use(config => {
  // ...
  return config
}, error => {
  return Promise.error(error)
})

function getName() {
    return axios.get("/api/table/get-table")
}
function getTableField(tableName) {
  return axios.get("/api/table/get-field?table="+tableName)
}


export {
    getName,getTableField
}